package com.lxl.xm.service;

import com.lxl.xm.common.DailyRegistration;
import com.lxl.xm.model.dto.student.ValidateStudent;
import com.lxl.xm.model.entity.Student;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author 86135
* @description 针对表【student(`student`)】的数据库操作Service
* @createDate 2024-01-31 16:32:42
*/
public interface StudentService extends IService<Student> {

    /**
     * 获取近七天注册的学生人数
     * @return
     */
    List<DailyRegistration> getRegisteredStudentsLast7Days();

    /**
     * 获取学生注册的总人数
     * @return
     */
    Long getTotalRegisteredStudents();

    /**
     * 获取各个省份学生人数
     * @return
     */
    List<Map<String,Object>> countStudentsByProvince();

    /**
     * 获取每个学院学生的人数
     * @return
     */
    List<Map<String, Object>> countStudentsByCollege();

    Boolean validateStudentByIdCardAndNameAndNoticeNumber(ValidateStudent validateStudent);

}
